#ifndef _THREAD_H_
#define _THREAD_H_

#include <pthread.h>

// 声明
void* doTask(void *task_arg);
class ThreadPool;

// 线程类
class Thread
{
public:
    Thread(ThreadPool*);
    void start();
private:
    pthread_t tid_;
    ThreadPool *pool_;
};

#endif